package com.bawei.a2010kotlin.room

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "student")
data class Student(
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id", typeAffinity = ColumnInfo.INTEGER)
    var id:Int,
    @ColumnInfo(name = "name", typeAffinity = ColumnInfo.TEXT)
    var name:String,
    @ColumnInfo(name = "age", typeAffinity = ColumnInfo.INTEGER)
    var age:Int
)
